package com.jrx.anytxn.param.plugins;

public class DeleteLogHelper {

    private static final ThreadLocal<DeleteLog> DELETE_HISTORY = new ThreadLocal<>();

    public static void setDelleteHistory(DeleteLog deleteLog) {
        DELETE_HISTORY.set(deleteLog);
    }

    public static DeleteLog getDelleteHistory() {
        return DELETE_HISTORY.get();
    }

    /**
     * 移除本地变量
     */
    public static void clearLocalHistory() {
        DELETE_HISTORY.remove();
    }
}
